﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ZX.Common.Extend
{
    public class DataCheck
    {
        public DataCheck()
        {
        }

        /// <summary>
        /// 
        /// </summary>
        public static DataCheck instance
        {
            get
            {
                return new DataCheck();
            }
        }

        /// <summary>
        /// 是否邮箱格式
        /// </summary>
        public bool IsEmail(string email)
        {
            return false;
        }

        /// <summary>
        /// 是否大陆的身份证号码
        /// </summary>
        /// <param name="idcard">身份证</param>
        /// <returns></returns>
        public bool IsMainlandIDCard(string idcard)
        {
            return false;
        }
       
        /// <summary>
        /// 大于
        /// </summary>
        /// <param name="first"></param>
        /// <param name="second"></param>
        /// <returns></returns>
        public bool  IsGreaterthan(int first,int second)
        {
            return first>second;
        }

        public bool IsGreaterthan(Decimal first, Decimal second)
        {
            return first > second;
        }

        public bool IsGreaterthan(Double first, Double second)
        {
            return first > second;
        }

        public bool IsGreaterthan(DateTime first, DateTime second)
        {
            return first > second;
        }
        /// <summary>
        /// 等于
        /// </summary>
        public bool IsEqual(int first,int second)
        {
            return first==second;
        }

        public bool IsEqual(Decimal first, Decimal second)
        {
            return first == second;
        }

        public bool IsEqual(Double first, Double second)
        {
            return first == second;
        }

        /// <summary>
        /// 日期比较
        /// </summary>
        public bool IsEqual(DateTime first, DateTime second)
        {
            return first == second;
        }


        /// <summary>
        /// 第一个值是否小于第二个值
        /// </summary>
        public bool IsLessThan(int first, int second)
        {
            return first < second;
        }

        public bool IsLessThan(Decimal first, Decimal second)
        {
            return first < second;
        }

        public bool IsLessThan(Double first, Double second)
        {
            return first < second;
        }
        /// <summary>
        /// 日期比较
        /// </summary>
        public bool IsLessThan(DateTime first, DateTime second)
        {
            return first < second;
        }

        
    }
}
